<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>币别管理</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/sorttable.js"></script>
		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>

	</head>

	<body>
		<div id="info_all">
			<div id="info_top">
				币别
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="showCurrencyList.action" theme="simple" id="delrow"
				cssStyle="margin-top:0px;">
				<div id="info_main">

					<div id="select">
						<hr>
						<table>
							<tr>
								<td>
									代码&nbsp;
								</td>
								<td>
									<s:textfield name="currencyModel.currencyCode" size="12"></s:textfield>
								</td>
								<td>
									名称&nbsp;
								</td>
								<td>
									<s:textfield name="currencyModel.currencyName" size="12"></s:textfield>
								</td>
							</tr>
						</table>

					</div>
					<div class="sele">
						<input type="submit" value="查询" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" id="btnsize" />
						
						<input type="reset" value="重置" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						<hr>
					</div>
					<!-- 信息显示栏 -->
					<div id="info_info1">
						<table id="info_table" width="500px" cellspacing=1px
							cellpadding=1px class="sortable">
							<thead>
								<tr>
									<th width="80px">
										代码
									</th>
									<th width="80px">
										名称
									</th>
									<th width="80px">
										汇率
									</th>
									<th width="80px">
										小数位数
									</th>
									<th width="80px">
										固定汇率
									</th>
									<th width="80px">
										折算方式
									</th>
								</tr>
							</thead>
							<tbody>
									<s:iterator value="currencyList">
										<tr
											ondblclick="currencyChildToParent('currencyId','<s:property value="currencyId"/>','currencyName','<s:property value="currencyName"/>','rate','<s:property value="accountRate"/>')">

											<td>
												<s:property value="currencyCode" />
											</td>
											<td>
												<s:property value="currencyName" />
											</td>
											<td>
												<s:property value="accountRate" />
												&nbsp;
											</td>
											<td>
												<s:property value="numDecimal" />
												&nbsp;
											</td>
											<td>
												<s:if test="rates==0">固定汇率</s:if>
												<s:else>浮动汇率</s:else>
											</td>
											<td>
												<s:if test="discount==0">原币&nbsp;X&nbsp;汇率</s:if>
												<s:else>原币&nbsp;/&nbsp;汇率</s:else>
											</td>
										</tr>
									</s:iterator>
							</tbody>
							<tfoot>
								<tr></tr>
							</tfoot>
						</table>
						<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
					</script>
					</div>
				</div>
			</s:form>
		</div>
	</body>
</html>
